"use strict";
cc._RF.push(module, '9d4c6nnVaVDM45eMpcSCXJH', 'CarFactory');
// scripts/CarFactory.js

"use strict";

var t = require;
var e = module;
var o = exports;
Object.defineProperty(o, "__esModule", {
  value: !0
}), o.CarFactory = void 0;
var i = t("GameConstant"),
    n = t("CarRoleView");

(o.CarFactory || (o.CarFactory = {})).createRole = function (t, e, o) {
  var a = o.arrBody[0].id;

  if (a) {
    if (!e) {
      var r = cc.instantiate(this.pfb_role);
      t.addChild(r), e = r.getComponent(n["default"]);
    }

    e.init(this, i.Physics_Car_Tag.Left, a), e.playAniIn();
  }
};

cc._RF.pop();